package com.hyl.line;

import com.hyl.utils.Point;

/**
 * @description:
 * @author: molar
 * @date: Created in 2020/6/7 10:35
 * @version:
 * @modified By:
 */
public class StraightLine extends Line{
    public StraightLine(Point firstPoint,Point SecondPoint) {
        super(firstPoint,SecondPoint);
    }

    @Override
    public void drawElement() {
        System.out.println("绘制了一条从（"+getFirstPoint().getX()+","+getFirstPoint().getY()
                +")到（"+getSecondPoint().getX()+","+getSecondPoint().getY()+")的直线");
    }
}
